package com.example.demo.mapper;

import com.example.demo.entity.Userinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @program: demo
 * @author: JCM
 * @create: 2023-07-31 18:06
 * @description:
 **/

@Mapper
public interface UserMapper {
    // 注册
    int reg(Userinfo userinfo);
    // 根据用户名查询 user 对象
    Userinfo selectByUsername(@Param("username") String Username);

    Userinfo getUserById(@Param("id") Integer id);
}
